package com.newlink.building.login.mvp.model

import com.newlink.building.login.mvp.contract.Module_Login_InputEmailContract
import com.newlink.building.common_base.base.BaseModel
import com.newlink.building.common_base.http.Base_RetrofitHelper
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.common_base.utils.logDebug
import io.reactivex.Observable

/**
 * Created by Jake on 2022/8/24.
 */
class Module_Login_InputEmailModel : BaseModel(), Module_Login_InputEmailContract.Model {

    override fun sendEmail(email: String, userCategory: Int): Observable<HttpResult<String?>> {
        logDebug<Module_Login_InputEmailModel>("[InputEmailModel] send email....")
        return Base_RetrofitHelper.service.sendPwdEmail(email, userCategory)
    }
}